﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangesPassword.aspx.cs" Inherits="Web.Cms.Member.ChangesPassword" Theme="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="/Scripts/jquery-1.4.1.js" ></script>
    <script type="text/javascript"  src="/Scripts/jquery.validate.js" ></script>
    <style type="text/css">
        .style1
        {
            text-align: right;
        }
        #form1  label.error  
       {
           color: red; vertical-align: top;
       }
        
    *
{
	margin: 0;
	padding: 0;
	
}
 
        </style>
 
   </head>
<body>
<p class="heading" style=" margin-left:80px; margin-bottom:20px; ">THAY ĐỔI MẬT KHẨU</p>  
    <form id="form1" runat="server">
    
    <table width="400px">
        <tr>
            <td width="200px" class="style1" >
                &nbsp;</td>
            <td>
                <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="true" ForeColor="red" 
                    Font-Size="11px"></asp:Label>
            </td>
        </tr>
        <tr>
            <td width="200px" class="style1" >
                <strong>Email:</strong></td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Width="200px" Height="20px" 
                    Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1" >
                <strong>Mật khẩu mới:</strong></td>
            <td>
                <asp:TextBox ID="txtNewPassword" runat="server" Width="200px" Height="20px" 
                    TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td >
                    &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td >
                    <asp:Button ID="buttonUpdate" runat="server" onclick="buttonUpdate_Click" 
                        SkinID="admin-ButtonUpdate" />
                </td>
        </tr>
    </table>
    
    </form>
</body>
</html>
<script type="text/javascript">
$().ready(function() {
    //$("#form1").validate({
    $('#<%=form1.ClientID %>').validate({
         rules: {
            <%= txtNewPassword.UniqueID%>:{      
                required: true,      
                minlength:6      
                }           
             }, messages: {
             <%= txtNewPassword.UniqueID %>:{ 
                required: "Bạn chưa nhập mật khẩu mới", 
                minlength:"Password cần có ít nhất 6 ký tự" 
            }
            }
       });  
       });
       
         

</script>

